package com.wpw.web.design.single.single2;

/**
 * @Description:
 * @ClassName: Singleton
 * @CreateDate: 2020-05-04 10:31
 * @author: wupengwei
 */
public class Singleton {

    private static Singleton singleton;

    private Singleton() {
    }

    private static class SingletonInner {
        private static final Singleton singleton = new Singleton();
    }

    public static Singleton getInstance() {
        return SingletonInner.singleton;
    }
}